'use client' import { Card, CardContent, Typography, CardActions, Avatar, useTheme } from '@mui/material' import Link from 'next/link' export interface IndexCardProps { imageLink: string title: string description: string hrefDocs: string hrefExample: string | undefined additionalLinks: { label: string; href: string }[] } export default function IndexCard(props: IndexCardProps) { const theme = useTheme() return ( {props.title} {props.description} Docs {props.hrefExample && ( Example )} {props.additionalLinks.map((aL, index) => { const color = aL.href.includes('youtube') ? theme.palette.secondary.main : theme.palette.primary.main return ( {aL.label} ) })} ) }